<h1>Edit Link<?=($link->name?' &gt; ' . $link->name:'')?></h1>
	<p>
	<?php
		$this->load->helper('form');
		echo form_open('', array('id'=>'link-form'));
	?>
	<table class="greentable">
			<tr id="form-item_name">
					<td width="200">Name</td>
					<td>
						<input type="hidden" id="link_id" name="link_id" value="<?=$link->id?>" />
						<input style="width:175px" type="text" id="name" name="name" value="<?=$link->name?>" /><p class="error_descr"></p>
					</td>
			</tr>
			<tr id="form-item_text">
					<td width="200">Text</td>
					<td>
						<input style="width:175px" type="text" id="text" name="text" value="<?=$link->name?>" /><p class="error_descr"></p>
					</td>
			</tr>
			<tr id="form-item_dest">
					<td width="200">Landing page</td>
					<td><input style="width:175px" type="text" id="dest" name="dest" value="<?=$link->dest?>" /><p class="error_descr"></p></td>
			</tr>
			<tr id="form-item_alt">
					<td width="200">Link title</td>
					<td><input style="width:175px" type="text" id="alt" name="alt" value="<?=$link->alt?>" /><p class="error_descr"></p></td>
			</tr>	
			<tr id="form-item_target">
					<td width="200">Window target</td>
					<td><input style="width:50px" type="text" id="target" name="target" value="<?=$link->target?>" /><p class="error_descr"></p></td>
			</tr>
	</table>
	<div style="text-align:center;">
		<table cellspacing="0" cellpadding="4">
		<tr>
				<td>
					<span id="edit-stat" style="color:orange;font-weight:bold;display:none;"></span>
					<input type="submit" id="bt-save" value="Save changes" class="submit" />
				</td>
		</tr>
		</table>
	</div>
	<?=form_close()?>
	</p>
	<script src="<?php echo $base_url; ?>js/validation.js"></script>
		<script src="<?php echo $base_url; ?>js/admin_mgt.js"></script>
		<script language="javascript">
				jQuery(document).ready(function() {
						jQuery('#bt-save').click(function(event){
						});
						jQuery('#link-form').submit(function(){
								GolderMarkets.AdminMgt.saveTextLinkChanges();
								return false;
						});
				});
	</script>	